const path = require('path')

module.exports = {
  css: {
    modules: true
  },
  publicPath: process.env.NODE_ENV === 'production' ? '/m2/' : '/',
  chainWebpack: config => {
    // alias
    config.resolve.alias
      .set('@', path.resolve('src'))
      
    // GraphQL Loader
    // config.module
    //   .rule('graphql')
    //   .test(/\.graphql$/)
    //   .use('graphql-tag/loader')
    //     .loader('graphql-tag/loader')
    //     .end()
  }
}